package com.biz;
import com.core.BizException;
import com.entity.model.Customer;
import com.core.BaseBiz;
import com.entity.threeConnect.ThirdUserInfo;
import com.util.webpage.PageData;
import sun.util.resources.cldr.chr.CalendarData_chr_US;

import java.util.List;
import java.util.Map;


/**
 * Created by jc on 2019/11/16.
 */
public interface CustomerBiz extends BaseBiz<Customer> {
    /**
     * 根据三方平台查询
     * @param cond
     * @return
     */
    Customer getByConnect(Map cond) throws BizException;

    /**
     * 三方平台注册用户
     *
     * @param thirdUserInfo
     * @return Customer
     */
    Customer addCustomerByConnect(ThirdUserInfo thirdUserInfo);

    void updateCustomerByPhoneAndConnect(Integer customerId, String phone);

    /**
     * 根据账号查询
     * @param account 账号
     * @return
     */
    Customer getByAccount(String account) throws BizException;

    List<Customer> customerList(PageData cond);

    List<Customer> pdCustomerList(PageData cond);
}
